import request from '@/utils/request'

// 查询进账账单列表
export function listIncomeBill(query) {
  return request({
    url: '/supply/IncomeBill/list',
    method: 'get',
    params: query
  })
}

// 查询进账账单详细
export function getIncomeBill(id) {
  return request({
    url: '/supply/IncomeBill/' + id,
    method: 'get'
  })
}

// 新增进账账单
export function addIncomeBill(data) {
  return request({
    url: '/supply/IncomeBill',
    method: 'post',
    data: data
  })
}

// 修改进账账单
export function updateIncomeBill(data) {
  return request({
    url: '/supply/IncomeBill',
    method: 'put',
    data: data
  })
}

// 删除进账账单
export function delIncomeBill(id) {
  return request({
    url: '/supply/IncomeBill/' + id,
    method: 'delete'
  })
}
